This repository was archived by the owner on Sep 18, 2023. It is now read-only.
[master < T618] Add docs for date module - #999
Merged
Merged
Conversation
vpavicic
reviewed
Aug 17, 2023
vpavicic
reviewed
Aug 17, 2023
Comment on lines
+48
to
+71
| :::info | ||
|
|
||
| The unit parameter supports the following values: | ||
| - "ms" for milliseconds | ||
| - "s" for seconds | ||
| - "m" for minutes | ||
| - "h" for hours | ||
| - "d" for days | ||
|
|
||
| ::: | ||
|
|
||
| :::info | ||
|
|
||
| The format parameter supports values defined under [Python strftime format codes](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes). | ||
|
|
||
| ::: | ||
|
|
||
| :::info | ||
|
|
||
| The timezone parameter can be specified with the database TZ identifier (text) name, as listed for [timezones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). | ||
|
|
||
| ::: | ||
|
|
||
| #### Output: |
Collaborator
There was a problem hiding this comment.
IF you have these many info boxes they kind of start losing meaning... :)
It's just regular text and info about the module
Contributor
Author
There was a problem hiding this comment.
I really like it this way because it draws attention and those infos are really important since the usage of procedures is different from neo4j so I wanted it to be highlighted
vpavicic
reviewed
Aug 17, 2023
vpavicic
reviewed
Aug 17, 2023
vpavicic
reviewed
Aug 17, 2023
vpavicic
reviewed
Aug 17, 2023
|
|
||
| ```cypher | ||
| CALL date.parse("2023/08/03 14:30:00", "h", "%Y/%m/%d %H:%M:%S", "Europe/Zagreb") | ||
| YIELD parsed RETURN parsed |
vpavicic
reviewed
Aug 17, 2023
vpavicic
reviewed
Aug 17, 2023
vpavicic
reviewed
Aug 17, 2023
| #### Usage: | ||
|
|
||
| ```cypher | ||
| CALL temporal.format(duration({minute: 127}), "%H:%M:%S") YIELD formatted RETURN formatted |
Contributor
Author
|
@kgolubic done, i removed temporal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added documentation for date module.
Pull request type
Please delete options that are not relevant and check the ones that are.
Related PRs and issues
PR this doc page is related to: memgraph/mage#291
Closes (link to issue):
Checklist: